package br.com.drestranho.escola.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="disciplina", schema="public")
public class Disciplina {
	
    @Id
    @SequenceGenerator(name="seq_disciplina", sequenceName="seq_disciplina", allocationSize=1)
    @GeneratedValue(generator="seq_disciplina", strategy=GenerationType.SEQUENCE)
    @Column(name="id")
    Integer id;
    @ManyToOne
    @JoinColumn(name="id_disciplina_nome", referencedColumnName="id")
    DisciplinaNome disciplinaNome;
    @ManyToOne
    @JoinColumn(name="id_funcionario", referencedColumnName="id")
    Funcionario funcionario;
    @ManyToOne
    @JoinColumn(name="id_turma", referencedColumnName="id")
    Turma turma;
    
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public DisciplinaNome getDisciplinaNome() {
		return disciplinaNome;
	}
	public void setDisciplinaNome(DisciplinaNome disciplinaNome) {
		this.disciplinaNome = disciplinaNome;
	}
	public Funcionario getFuncionario() {
		return funcionario;
	}
	public void setFuncionario(Funcionario funcionario) {
		this.funcionario = funcionario;
	}
	public Turma getTurma() {
		return turma;
	}
	public void setTurma(Turma idTurma) {
		this.turma = idTurma;
	}
    
    
}
